package com.n9.buymsg.event;

/**
 * @Author: ice
 * @Date: 2020-07-13 8:55
 */
public class QQMsgCountEvent extends AppEvent {
    private long qqUin;
    private long msgCount;
    private QQMsgCountEvent(String name, long qqUin, long msgCount) {
        super(name, null);
        this.qqUin = qqUin;
        this.msgCount = msgCount;
    }

    public long getQqUin() {
        return qqUin;
    }

    public void setQqUin(long qqUin) {
        this.qqUin = qqUin;
    }

    public long getMsgCount() {
        return msgCount;
    }

    public void setMsgCount(long msgCount) {
        this.msgCount = msgCount;
    }

    public static QQMsgCountEvent createNewMsgEvent(long qqUin, long msgCount) {
        return new QQMsgCountEvent(QQ_NEW_MSG, qqUin, msgCount);
    }

    public static QQMsgCountEvent createBuyMsgEvent(long qqUin, long buyMsgCount) {
        return new QQMsgCountEvent(BUY_MSG_STORE_SUCCESS, qqUin, buyMsgCount);
    }
}
